package com.wxblockchain.core.wsmanager.listener;

import com.wxblockchain.core.wsmanager.WsStatus;

import okhttp3.WebSocket;
import okio.ByteString;

public interface IWsManager {

  WebSocket getWebSocket();

  void startConnect();

  void stopConnect();

  boolean isWsConnected();

  int getCurrentStatus();

  void setCurrentStatus(@WsStatus.WsState int currentStatus);

  boolean sendMessage(String msg);

  boolean sendMessage(ByteString byteString);
}
